home *** CD-ROM | disk | FTP | other *** search
- Path: news.cern.ch!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: underscore _var ?
- Date: 19 Apr 96 00:48:18 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.829874898@news.cern.ch>
- References: <4l6d3o$ne0@mulga.cs.mu.OZ.AU>
- NNTP-Posting-Host: ues5.cern.ch
- Mime-Version: 1.0
- Content-Type: text/plain; charset=US-ASCII
- Content-Transfer-Encoding: 7bit
- X-Newsreader: NN version 6.5.0 #18 (NOV)
-
- In <4l6d3o$ne0@mulga.cs.mu.OZ.AU> simc@mundil.cs.mu.OZ.AU (Falchion) writes:
-
- >What is an underscore at the start of
- >a function name or variable supposed
- >to indicate?
- >
- >eg. int _num;
- >
- > int _somefunction();
-
- It indicates that the code was written by an ignorant :-)
-
- From the C standard:
-
- All external identifiers that begin with an underscore are reserved.
- All other identifiers that begin with an underscore and either an
- upper-case letter or another underscore are reserved. If the program
- defines an external identifier with the same name as a reserved
- external identifier, even in a semantically equivalent form, the
- behavior is undefined.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-